import { BaseEntity } from "src/baseEntity";
import { UserSys } from "src/user/userSys.entity";
import { Column, Entity, ManyToOne } from "typeorm";



@Entity("notice")
export class Notice extends BaseEntity {
    @ManyToOne(() => UserSys)
    user: UserSys

    @ManyToOne(() => UserSys)
    target: UserSys

    @Column()
    title: string

    @Column({
        default: false
    })
    read: boolean

    @Column({
        type: "longtext"
    })
    context: string

}